
$(function(){	
    
	 var index1=0;
     var lens1 = Math.ceil( $(".bigimg1s2 dd ul li").length/5);
	 
	 $(".bigimg1s2 dd li").click(function(){
		index  =   $(".bigimg1s2 dd li").index(this);
		showImgs1(index,740);
	 }).eq(0).mouseover();	 

     
	 $(".dyna2pv").click(function(){
		index1=(index1==0)?0:index1-1;
		channels(index1,".bigimg1s2 dd ul",705);
	 });	
	 $(".dyna2next").click(function(){
		index1=(index1+1==lens1)?0:index1+1;
		channels(index1,".bigimg1s2 dd ul",705);
	 });	
	 
	 
	 
});

function channels(indexss,ids,channel_s){
		lefts=-indexss*channel_s+"px";
		$(ids).animate({left:lefts});
		    
}	

function showImgs1(indexss,ws){
		lefts=-indexss*ws+"px";
		$(".bigimg2 ul").animate({left:lefts});
	    $(".bigimg1s2 dd ul li").removeClass("here");
	    $(".bigimg1s2 dd ul li").eq(indexss).addClass("here");
		    
}	